<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/tag.jsp"%>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>用户登陆界面</title>
		<link rel="stylesheet" href="${ctx}/css/flexigrid/flexigrid.css"
			type="text/css"></link>
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="../favicon.ico">
		<link rel="stylesheet" type="text/css" href="css/style.css" />
		<script src="js/modernizr.custom.63321.js">
	
</script>
	</head>
	<script type="text/javascript">
	function submitLogin() {
		var username = $("#login").val();
		var password = $("#password").val();
		location.href = "${ctx}/login/login.do?method=login&username="
				+ username + "&password=" + password;
	}

	function keyLogin() {//按回车登录
		if (event.keyCode == 13)
			document.getElementById("submit").click();
	}
	function check() {//光标定位到登陆框
		document.getElementById("login").focus();
	}
</script>
	<body onkeydown="keyLogin()"  onload="check()">
		<div class="container">
			&nbsp;
			<header>
			<nav class="codrops-demos">
			<a class="current-demo" href="index.jsp">Demo 1</a>
			<a href="index2.html">Demo 2</a>
			<a href="index3.html">Demo 3</a>
			<a href="index4.html">Demo 4</a>
			<a href="index5.html">Demo 5</a>
			</nav>

			<div class="support-note">
				<span class="note-ie">Sorry, only modern browsers.</span>
			</div>

			</header>

			<section class="main">
			<form class="form-1" id="form-1" accept="">
				<p class="field">
					<input id="login" type="text" name="login"
						placeholder="Username or email">
					<i class="icon-user icon-large"></i>
				</p>
				<p class="field">
					<input id="password" type="password" name="password"
						placeholder="Password">
					<i class="icon-lock icon-large"></i>
				</p>
				<p class="submit">
					<button type="button" id="submit" name="submit"
						onclick="submitLogin()">
						<i class="icon-arrow-right icon-large"></i>
					</button>
				</p>
			</form>
			</section>
		</div>
	</body>
</html>